package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 问题表
 * @TableName question
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Question {
    /**
     * 问题id
     */
    private Integer questionId;

    /**
     * 问题标题
     */
    private String questionTitle;

    /**
     * 问题内容
     */
    private String questionContent;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date questionCreatetime;

    /**
     * 用户id 外键 一对一
     */
    private Integer userId;

    private User user;


}